A = readmatrix('test.txt')

x = A(:,1)
y = (A(:,2)+300)/2000

plot(x,y,'color','[0 0 1]','linewidth',0.5)
xlim([4,91])
ylim([0,1])
yticks(0:0.2:1)
xticks(10:10:90)

xlabel('2 theta [deg]', 'fontname','Arial', 'fontsize',7,'fontweight','bold')
ylabel('X-ray Counts [arb.]','fontname','Arial', 'fontsize',7,'fontweight','bold')
set(gca,'XMinorTick','on')
a = get(gca,'XTickLabel')
b = get(gca,'YTickLabel')
set(gca,'XTickLabel',a,'fontname','Arial','fontweight','bold','fontsize',7)
set(gca,'yticklabel',b,'fontname','Arial','fontweight','bold','fontsize',7)

set(gcf,'position',[0,0,300,200])